//
//  BGTableViewCell.m
//  TingliFeng
//
//  Created by xinxuan on 16/1/5.
//  Copyright © 2016年 Bullgo. All rights reserved.
//

#import "BGTableViewCell.h"
//#import "DataBaseHandel.h"
#import "LFDBManager.h"
@implementation BGTableViewCell


- (void)awakeFromNib {
    // Initialization code
}





-(void)setModel:(CommenModel *)model{
    
    self.background.image = [UIImage imageNamed:model.pic];
    self.nameLabel.text = model.name;
    self.contentLabel.text = model.centent;
    self.levelLabel.text = model.level;
    [self.starView addStarViewWithCount:[model.starCount intValue]];
    
    
    NSString * periodString = [NSString stringWithFormat:@"%@天/丰胸",model.period];
    self.dateLabel.text = periodString;
    
    NSString * personNumberString = [NSString stringWithFormat:@"%@人在练",model.personNumber];
    self.numberLabel.text = personNumberString;
    
    NSString * timeString = [NSString stringWithFormat:@"约%@分钟",model.time];
    self.timeLabel.text = timeString;
    

    
}





@end
